
#include "itemsmanager.h"
#include "paintscene.h"

ItemsManager* ItemsManager::_instance = 0;

ItemsManager::ItemsManager()
{
    _currentItem = 0;
}

ItemsManager::~ItemsManager()
{

}

ItemsManager* ItemsManager::instance()
{
    if(_instance == 0)
    {
        _instance = new ItemsManager();
    }

    return _instance;
}

GraphicsItem* ItemsManager::currentItem()
{
    return _currentItem;
}

void ItemsManager::setCurrentItem(GraphicsItem *item)
{
    this->_currentItem = item;
}

PaintScene* ItemsManager::paintScene()
{
    return _paintScene;
}

void ItemsManager::setPaintScene(PaintScene *s)
{
    _paintScene = s;
}
